<block name="body">
 <html>
   <head>
		<meta  charset="utf-8">
		<style>
		a{
		  text-decoration:none;
		}
		
		  .current{
		  
		  background-color:#ddd;
		   color:red;
		  }
		.prev,.num,.next,.current{
		 width:auto;
		 height:auto;
		 margin:4px;
		 border:1px solid #ddd;
		 padding:1px 2px;
		
		 box-shadow:0 0 2px rgba(0,0,0,0.2);
		 background-color:rgba(255,255,255,0.1);
		 }
         #del{
		   color:red;
		 }
		</style>
		<link rel="stylesheet" href="{$Think.const.APP_INDEX}/css/bootstrap.min.css">

		
   </head>

   <body>
 
		<center>
			 <h3>问题管理系统</h3>
			 <a href="{:U('Problem/select')}">查看信息</a>
		     <a href="{:U('Problem/add')}">添加信息</a>
		     <hr>  
			
			 <form action="{:U('Problem/select')}"   method="get">
			   <b> 问题名称:</b><input type="text" name="name"  value="{$name | default=''}">
			   <b> 具体描述:</b><input type="text" name="desc"  value="{$desc | default=''}">
			   <b>是否解决:</b><select name="issolve">
			   <option></option>
			   <option value='1'  {$issolve==1 ?'selected':''}>未解决</option>
			   <option value='2' {$issolve==2 ?'selected':''}>已解决</option>
			   
			  
			     
			     </select>
			   <input type="submit" value="搜索">
			 </form>
		  
			<table  width="700"  border="1" cellspacing="0" class="table-bordered  " >
			   <tr>
					<th>id</th>
					<th>问题名称</th>
					<th>问题描述</th>
					<th>是否解决</th>
					<th>日期</th>
					<th>操作</th>
			   </tr>
			    <foreach name="list"  item="vo">
			   		<tr class="active">
						<td class="success">{$vo.id}</td>
						<td class="success">{$vo.name}</td>
						<td class="success">{$vo.desc}</td>
						
						
						<td class="success"><if condition="$vo.issolve eq 1 ">未解决
							<else /> 已解决
							</if></td>
						<td class="success">{$vo.date}</td>
						<td class="success"><a href="{:U('Problem/edit')}?id={$vo['id']}" class="btn btn-info btn-xs" >修改</a> |
						<a href="{:U('Problem/del')}?id={$vo['id']}" class="btn btn-danger btn-xs">删除</a></td>
					</tr>
				</foreach>
			</table>
			<br>
			<div>{$pageinfo}</div>
		</center>
   </body>
 </html>
 </block>
 <block name="footer">
 </block>